package Spring;

/**
 * @Auther: Administrator
 * @Date: 2019/8/9/009 19 56
 * @Description:
 */
public class Person {

    private String name;

    public Car car;

    public void sayHello() {
        System.out.println(this.name + " say hello");
    }

    public Car createCar() {
        return new Car("奥迪");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Person(String name) {
        this.name = name;
    }

    public Person() {
    }
}
